package com.example.javabasic.thread.classtwo.singleton.demo3;
//观察者2
public class OctalObserver extends Observer {
    //构造器
    public OctalObserver(Subject subject){
        super(subject);
    }

    @Override
    public void notifySubject() {
        System.out.println("Octal "+Integer.toOctalString(subject.getState()));
    }
}
